home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / IM_3.adf / Exec / piarc.LZH / animwr4.rexx < prev    next >
OS/2 REXX Batch file  |  1992-04-09  |  1KB  |  51 lines

  1. /*
  2.     This phase calls the delta generator with the -l switch
  3.     to generate the loop deltas
  4.  */
  5.  
  6. /*
  7.  * open rexxsupport.library -- needed for some functions
  8.  */
  9. if ~show('L',"rexxsupport.library") then do
  10.   if addlib('rexxsupport.library',0,-30,0) then do
  11.       /* everything's ok */
  12.     end;
  13.   else do
  14.     say 'We Have A Library Problem, Unable To Load "rexxsupport.library"';
  15.     say 'Cannot operate animr.rexx without this library - sorry!';
  16.     exit 10;
  17.     end;
  18.   end;
  19.  
  20. prtnme = 'IP_Port'; /* assume Image Professional */
  21. if show('P','IP_Port') = 0 then do
  22.   if show('P','IM_Port') = 0 then do
  23.     say "Can't find image processor's ARexx port!!!"; /* not running? */
  24.     say "This script requires IP, IM or IM F/c to run!";
  25.     exit(20);
  26.     end;
  27.   else do
  28.     prtnme = 'IM_Port'; /* That's the thing about assumptions... */
  29.     end;                 /* We make em, user's break em.          */
  30.   end;
  31.  
  32. options;
  33. address;
  34.  
  35.   prevpath = 'ram:'; /* put user in ram to start with... */
  36.  
  37.   call open(fhandle,'ram:IP_ANIMWR.CFG','read');      /* open the file */
  38.    jiffies = readln(fhandle);
  39.    animfile = readln(fhandle);
  40.   call close(fhandle);                     /* close the file    */
  41.  
  42.   address command 'cmpi:ANIMWR -l '||jiffies||' '||animfile;
  43.  
  44.   address command 'delete >nil: ram:IP_ANIMWR.CFG';
  45.  
  46.   address(prtnme);
  47.   'finish';
  48.   exit 0;
  49.  
  50.  
  51.